package com.wxzz.elearing.user.entity;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-03-11
 */
@Data
@ApiModel(value = "AdminRole对象", description = "")
public class AdminRole extends BaseEntity {

    @Excel(name = "角色名", orderNum = "0", width = 15)
    @NotNull(message = "请传入角色名")
    @ApiModelProperty(value = "角色名")
    private String roleName;

    @Excel(name = "备注", orderNum = "1", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "企业id 如果为0则为总后台账号")
    private Long enterpriseId;

    @ApiModelProperty(value = "角色类型 0-普通角色 1-总权限角色 2-讲师角色")
    private Integer roleType;

//    @ApiModelProperty(value = "类型  0-总后台账号   1-企业账号")
//    private Integer roleType;

}
